package br.com.helpdesk.model;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@RequestScoped
@ManagedBean(name="erroBean")
public class ErroBean {
	
	@SuppressWarnings("unused")
	public String geraErroOutcome(){
		String ret = "erro";
		try {
			System.out.println(100/1);
			int a,b,resultado;
			a = 100;
			b = 1;
			resultado = a/b;
			ret = "sucesso";
		} catch (Exception e) {
			System.err.println(e);
		} return ret;
	}
	
	public void geraErro() {
		System.out.println(10/1);
	}
}
